using UnityEngine;
namespace NL.RPG.Test
{
    public class HudTest__ : MonoBehaviour
    {
        public float Duration;
        public int Max = 100;
        // Start is called before the first frame update
        void Start()
        {

        }

        float _Last;
        // Update is called once per frame
        void Update()
        {
            if (Time.time - _Last < Duration) return;
            _Last = Time.time;

            for (int i = 0; i < Max; i++)
                _AddHud();

 
        }
        void _AddHud()
        {
            Hud.AddHud(
                new Vector3(Random.Range(-10, 10), 0, Random.Range(-10, 10)),
                Random.Range(0, 1000),
                 (HudType)Random.Range(0, 5));
        }
    }
}

